<template>
  <div class="mymusic">
    <div class="redbanner">
      <img src="../assets/sanjiaoxing_shang.png" alt="" />
    </div>
    <div class="denglu">
      <div class="img"></div>
      <div class="join" v-if="show"></div>
      <div class="btn" @mouseenter="jin" @mouseout="li" @click="denglu">
        登录账号
      </div>
    </div>
    <div class="motaik" v-show="motai">
      <div class="bgc"></div>
      <div class="mo">
        <div class="mo-top">
          <span>登录</span>
          <div @click="guanbi">X</div>
        </div>
        <div class="mo-bottom">
          <div class="saoma"></div>
          <div class="erweima">二维码扫码区域 暂时没做。。</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Mymusic",
  data() {
    return {
      show: false,
      motai: false,
    };
  },
  methods: {
    jin() {
      this.show = true;
      console.log(1);
    },
    li() {
      this.show = false;
    },
    guanbi() {
      this.motai = false;
    },
    denglu() {
      this.motai = true;
    },
  },
};
</script>

<style scoped>
.mymusic {
  height: 700px;
  background-color: #f5f5f5;
}
.redbanner {
  position: relative;
  height: 7px;
  background-color: #c20c0c;
}
.redbanner img {
  position: absolute;
  top: -16px;
  left: 455px;
}
.denglu {
  width: 980px;
  height: 100%;
  background-color: #fff;
  margin: 0 auto;
  border: 1px solid #d3d3d3;
  border-top: none;
  padding-top: 88px;
}
.img {
  height: 277px;
  width: 738px;
  background: url("../assets/mymusic.png") no-repeat;
  margin: auto;
}
.join {
  background: url("../assets/mymusic.png") no-repeat;
  width: 167px;
  height: 44px;
  background-position: 0px -278px;
  margin-left: 603px;
  margin-top: -75px;
}
.btn {
  width: 167px;
  height: 44px;
  text-indent: -9999px;
  cursor: pointer;
  position: absolute;
  top: 366px;
  left: 832px;
}
.motaik {
  display: flex;
  justify-content: center;
  align-items: center;
}
.bgc {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 1440px;
  height: 987px;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1;
}
.mo {
  width: 530px;
  height: 366px;

  position: fixed;
  top: 10%;
  z-index: 2;
  border-radius: 10px;
  overflow: hidden;
}
.mo-top {
  width: 100%;
  height: 39px;
  background-color: #2d2d2d;
  line-height: 39px;
}
.mo-top span {
  color: #fff;
  font-size: 16px;
  margin-left: 25px;
}
.mo-top div {
  width: 28px;
  height: 27px;
  float: right;
  font-size: 18px;
  color: #d3d3d3;
  /* border: 1px solid; */
  line-height: 27px;
  text-align: center;
  margin-top: 7px;
  margin-right: 5px;
  cursor: pointer;
}
.mo-top div:hover {
  color: red;
}
.mo-bottom {
  width: 100%;
  height: 326px;
  background-color: #fff;
  display: flex;
  align-content: center;
  justify-content: space-around;
}
.saoma {
  background: url("../assets/saoma.png") no-repeat;
  width: 125px;
  height: 220px;
  background-position: 0 0;
  background-size: 125px;
  margin: auto 0;
}
.erweima {
  text-align: center;
}
</style>
